package com.tjetc.service;

import com.tjetc.dao.AdminDao;
import com.tjetc.domain.Person;

import java.sql.SQLException;

public class AdminService {
    private AdminDao adminDao=new AdminDao();

    public Person log(String username, String password) {
        try {
            return adminDao.log(username,password);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
